package com.party.mobile.web.dto.information.output;

import com.party.core.model.article.Article;
import com.party.core.model.information.Information;
import com.party.mobile.web.dto.article.output.ArticleOutput;
import org.springframework.beans.BeanUtils;

import java.util.Date;

/**
 * @ClassName InformationOutput
 * @Description
 * @Author shenliuhai
 * @Date 2020/2/6 17:40
 **/
public class InformationOutput {
    private String id;
    private String createBy;
    private Date createDate;
    private String updateBy;
    private Date updateDate;
    private String remarks;
    private String delFlag;
    private String title;
    private String subTitle;
    private String pic;
    private String content;
    private String memberId;
    private String takenfrom;
    private String takenfromLogo;
    private Integer readNum;
    private Integer commentNum;
    private Integer shareNum;
    private Integer sort;
    private String cityId;
    private String informationTypeId;

    private String timeBefore;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getTimeBefore() {
        return timeBefore;
    }

    public void setTimeBefore(String timeBefore) {
        this.timeBefore = timeBefore;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSubTitle() {
        return subTitle;
    }

    public void setSubTitle(String subTitle) {
        this.subTitle = subTitle;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public String getTakenfrom() {
        return takenfrom;
    }

    public void setTakenfrom(String takenfrom) {
        this.takenfrom = takenfrom;
    }

    public String getTakenfromLogo() {
        return takenfromLogo;
    }

    public void setTakenfromLogo(String takenfromLogo) {
        this.takenfromLogo = takenfromLogo;
    }

    public Integer getReadNum() {
        return readNum;
    }

    public void setReadNum(Integer readNum) {
        this.readNum = readNum;
    }

    public Integer getCommentNum() {
        return commentNum;
    }

    public void setCommentNum(Integer commentNum) {
        this.commentNum = commentNum;
    }

    public Integer getShareNum() {
        return shareNum;
    }

    public void setShareNum(Integer shareNum) {
        this.shareNum = shareNum;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getCityId() {
        return cityId;
    }

    public void setCityId(String cityId) {
        this.cityId = cityId;
    }

    public String getInformationTypeId() {
        return informationTypeId;
    }

    public void setInformationTypeId(String informationTypeId) {
        this.informationTypeId = informationTypeId;
    }

    public static InformationOutput transform(Information information){
        InformationOutput informationOutput = new InformationOutput();
        BeanUtils.copyProperties(information, informationOutput);
        return informationOutput;
    }
}
